﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;

namespace Skynet.WebAdministracion.Views.Register
{
    public class RegisterPresenter : Infrastructure.Web.Views.Master.MasterPresenter<IRegisterView>
    {

        [Dependency]
        public Skynet.BusinessLogic.BusinessComponents.BCCustomers BCCustomer { get; set; }

        public void RegisterCustomer(string UserName)
        {

            var cus  = new BusinessEntities.Customer();
            cus.Id = Guid.NewGuid();
            cus.Name = UserName;
            cus.LastName =UserName;
            cus.UserName = UserName; 
            cus.BirthDate = DateTime.Now;
            cus.DocIden = "invalid";
            this.BCCustomer.MaintenanceCustomers(cus);
        }
    }
}
